home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
DEF
/
Utilities
/
Array Primitives
/
make-array
< prev
next >
Wrap
Lisp/Scheme
|
1998-10-23
|
242b
|
17 lines
make-array length
Returns an empty vector of a given length.
(setq vector (make-array 10))
--> #(nil nil nil nil nil nil nil nil nil nil)
(putv vector 0 1)
--> 1
(aref vector 0)
--> 1
vector
--> #(1 nil nil nil nil nil nil nil nil nil)